local lfs = require("lfs")
local attrdir
attrdir = function(path)
  for file in lfs.dir(path) do
    if file ~= "." and file ~= ".." then
      local f = path .. '/' .. file
      local attr = lfs.attributes(f)
      if attr.mode == "directory" then
        attrdir(f)
      else
        for name, value in pairs(attr) do
          print(name, value)
        end
      end
    end
  end
end
return attrdir(".")
